package cn.kgc.springbootday0102.service.impl;

import cn.kgc.springbootday0102.service.HelloSpringbootService;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.Map;

/**
 * @author 课工场
 * @date 2024/5/24
 * @description
 */
@Service
public class HelloSpringbootServiceImpl implements HelloSpringbootService {


    @Override
    public Map<String, Object> method1(Integer id) {

        HashMap<String, Object> result = new HashMap<>();
        result.put("code",200);
        result.put("message","ok");
        result.put("data",id);

        return result;
    }
}
